package com.zx.idc.backend.gui.scheduler.report.securelog;


import com.zx.idc.common.spring.SpringBeanUtil;
import com.zx.idc.ds.report.rsecurelog.service.IRSecureLogWeekService;
import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 统计安全日志周报Job
 */
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class RSecureLogWeekJob implements Job{

    private static final Logger LOG = LoggerFactory.getLogger(RSecureLogWeekJob.class);

    @Autowired
    private IRSecureLogWeekService secureLogWeekService;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        LOG.info("Aggregate secure log weekly report job start...");
        secureLogWeekService.aggregate();
        LOG.info("Aggregate secure log weekly report job done.");
    }


}
